package com.forever7776.life.core.common.vo;

import util.RelativeDateFormatUtil;

/**
 * <p>
 * 用户博客数据
 * </p>
 *
 * @author kz
 * @date 2018-03-01
 */
public class UserBlogVO extends UserBaseInfoVO {

    /**
     * 博客ID
     */
    private Integer blogId;
    /**
     * 博客标题
     */
    private String title;
    /**
     * 博客摘要
     */
    private String abstracts;

    /**
     * 博客封面
     */
    private String banner;
    /**
     * 博客开放状态
     */
    private Integer openup;

    /**
     * 博客状态
     */
    private Integer status;

    /**
     * 博客审核状态
     */
    private Integer type;
    /**
     * 博客推荐状态
     */
    private Integer recommendType;
    /**
     * 博客创建时间
     */
    private String insertDate;
    /**
     * 博客更新时间
     */
    private String lastDate;
    /**
     * 博客阅读量
     */
    private Integer readCount;
    /**
     * 博客收藏量
     */
    private Integer collectCount;
    /**
     * 博客点赞量
     */
    private Integer praiseCount;

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAbstracts() {
        return abstracts;
    }

    public void setAbstracts(String abstracts) {
        this.abstracts = abstracts;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public Integer getOpenup() {
        return openup;
    }

    public void setOpenup(Integer openup) {
        this.openup = openup;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRecommendType() {
        return recommendType;
    }

    public void setRecommendType(Integer recommendType) {
        this.recommendType = recommendType;
    }

    public String getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(String insertDate) {
        this.insertDate = RelativeDateFormatUtil.format(insertDate);
    }

    public String getLastDate() {
        return lastDate;
    }

    public void setLastDate(String lastDate) {
        this.lastDate = lastDate;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    @Override
    public String toString() {
        return "UserBlogVO{" +
                "blogId=" + blogId +
                ", title='" + title + '\'' +
                ", abstracts='" + abstracts + '\'' +
                ", banner='" + banner + '\'' +
                ", openup=" + openup +
                ", status=" + status +
                ", type=" + type +
                ", recommendType=" + recommendType +
                ", insertDate='" + insertDate + '\'' +
                ", lastDate='" + lastDate + '\'' +
                ", readCount=" + readCount +
                ", collectCount=" + collectCount +
                ", praiseCount=" + praiseCount +
                '}';
    }
}
